<div class="panel panel-default">
	<div class="panel-heading">
		回复内容
		<button class="btn btn-default btn-xs" ng-click="add()" type="button">添加回复</button>
	</div>
	<div class="panel-body">
		<div class="form-group" ng-repeat="(k,v) in contents"  style="position: relative;">
		<i class="fa fa-close delIcon" ng-click="delContent(k)"  style="position: absolute;cursor: pointer;z-index: 9;top: -7px;right: 10px;"></i>
            <label class="col-sm-2 control-label">内容</label>
            <div class="col-sm-10">
                <textarea ng-model="v.content" class="form-control" rows="3"></textarea>
            </div>
        </div>
        <input type="text" name="content" hidden="hidden" >
	</div>
</div>
<script>
function module($scope){
	// $scope.rep={'position':'relative'};
	// $scope.irep={'position':'absolute','right':'10px','top':'-7px','z-index':'9','cursor':'pointer'};
	$scope.contents=[{"content":""}];
	$scope.add=function(){
		$scope.contents.push({"contents":""});
	};
	$scope.delContent=function(k){
		$scope.contents=_.without($scope.contents,$scope.contents[k]);
	}
}
function submit($scope){
	$("[name='content']").val(angular.toJson($scope.contents));
}
</script>